package org.sudoku.solver.examples;

import org.sudoku.solver.ProbabilisticInferenceSolver;
import org.sudoku.solver.ProbabilisticSolver;

/**
 * @author shivkumar cm
 *
 */
public class ProbabilisticSolverExample {

	public static void main(String args[]) {
		ProbabilisticSolver solver = new ProbabilisticInferenceSolver();

		solver.readProblem(new String[] { 
				"800700000", 
				"506209807",
				"900005020", 
				"408107502", 
				"300002004", 
				"207000000",
				"684923751", 
				"132576498", 
				"759000000" 
		});

		System.out.println("Given problem: ");
		solver.prettyPrint();
		solver.printFacts();
		solver.solve();
		solver.printFacts();
	}
}
